/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.ua.node;

import java.util.ArrayList;
import java.util.List;
import org.xml.sax.Attributes;
import org.xml.sax.helpers.AttributesImpl;

/**
 *
 * @author ananthaamornphong
 */
public class ContentNode extends UMLNode{

    private List nodes = new ArrayList();
    private NamespaceNode ns = new NamespaceNode();
    
    
    @Override
    public String getName() {
       
        return "XMI.content";
    }

    @Override
    public List getChildren() {
        //throw new UnsupportedOperationException("Not supported yet.");
        ModelNode md = new ModelNode();
        md.addNode(ns);
        nodes.add(md);
     
        return nodes;
    }

    public void addNode(UMLNode node){
        ns.addNode(node);
       
    }
    @Override
    public int getChildCount() {
        //throw new UnsupportedOperationException("Not supported yet.");
        return nodes.size();
    }

    @Override
    public Attributes getAttributes() {
        //throw new UnsupportedOperationException("Not supported yet.");
          AttributesImpl attributes = new AttributesImpl();
            return attributes;
    }
    
}
